﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using FlickrNet;
using SOM.Common;
using SOM.Security;

public partial class Reclamacao_AlbunsDetalhes : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            string idAlbum = Request["AlbumId"];

            Flickr flickr = new Flickr(Constantes.FLICKRAPIKEY);

            PhotosetPhotoCollection photosCollection = flickr.PhotosetsGetPhotos(idAlbum);
            PhotoCollection photosCollectionAux = new PhotoCollection();

            for (int i = 0; i < 30; i++)
            {
                photosCollectionAux.Add(photosCollection[i]);
            }

            lblTotalFotos.Text = photosCollection.Count.ToString();
            rptImagens.DataSource = photosCollectionAux;
            rptImagens.DataBind();

        }
        catch
        {

        }
    }
}
